//
//  NSString+WNMiscellaneous.h
//  iOSOCProjectDirectory
//
//  Created by BHmac on 2017/6/12.
//  Copyright © 2017年 XieXuan. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <CoreGraphics/CoreGraphics.h>

@interface NSString (WNMiscellaneous)

/** 计算字符串大小 */
- (CGSize)sizeWithFont:(UIFont *)font maxSize:(CGSize)maxSize;

/** 计算Html 格式文本大小 */
- (CGSize)htmlStrSizeWithFont:(UIFont *)font maxSize:(CGSize)masSize;

/** 去除HTML标签 */
+ (NSString *)filterHTML:(NSString *)html;

/** 判断空字符串 */
+ (NSString *)nullStr:(NSString *)str;

/** 中文转拼音 */
+ (NSString *)transform:(NSString *)chinese;

/** 判断空字符串 */
+ (NSString *)isBlankString:(NSString *)str;

/** 加密 */
+ (NSString *)encryption:(NSString *)string;

/** 解密 */
+ (NSString *)decryption:(NSString *)string;
+ (NSString *)utf8toChinese:(NSString *)string;

/** 设置textField的提示文字颜色 */
+ (NSAttributedString *)setTextFieldPlaceholderColor:(UITextField *)textField;

/** 自适应尺寸大小 */
+ (NSString *)autoWebAutoImageSize:(NSString *)html;

/** 显示Html文本 */
-(NSAttributedString *)changToAttributedString;

@end
